import request from "@/utils/request";
//所有频道
export function pindaoBar() {
  return request.get("/v1_0/channels");
}
//存频道
export function cunpindao(data) {
  return request.put("/v1_0/user/channels", data);
}
//获取储存频道
export function getpindao() {
  return request.get("/v1_0/user/channels");
}
export const getArticles = (params) => {
  return request({
    method: "GET",
    url: "/v1_0/articles",
    params,
  });
};
